package com.wtwd.device.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.device.model.entity.HealthTypeContent;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2023-08-16
 */
public interface AppHealthTypeContentService extends IService<HealthTypeContent> {

    /**
     * key healthTypeContent
     * hash key由 healthTypeContent主键id
     */
    String HEATH_CONTENT_KEY_PREFIX = "healthTypeContent_";

    String DEFAULT_LANGUAGE_TYPE = "en";

    String UNTRANSLATED_LANGUAGE = "zh";

    List<HealthTypeContent> queryPageByTypeId(Integer pageNo, Integer pageSize, Integer typeId, String languageType) throws Exception;

    /**
     * UNTRANSLATED_LANGUAGE
     * 不进行翻译
     *
     * @param healthTypeContents
     * @param languageType
     * @return
     * @throws Exception
     */
    List<HealthTypeContent> translatorsTypeLanguage(List<HealthTypeContent> healthTypeContents, String languageType) throws Exception;
}
